<template>
  <el-card>
    <div slot="header">
      <div class="title">
        <span>线上热门搜索</span>
        <el-dropdown>
          <span class="el-dropdown-link">
            <i class="el-icon-more"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>黄金糕</el-dropdown-item>
            <el-dropdown-item>狮子头</el-dropdown-item>
            <el-dropdown-item>螺蛳粉</el-dropdown-item>
            <el-dropdown-item>双皮奶</el-dropdown-item>
            <el-dropdown-item>蚵仔煎</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
      <div>
        <el-row :gutter="20">
          <el-col :span="12">
            <LineCharts />
          </el-col>
          <el-col :span="12">
            <LineCharts />
          </el-col>
        </el-row>
        <!-- 表格 -->
        <el-table style="width: 100%" border class="mytab">
          <el-table-column type="index" label="排名" width="80">
          </el-table-column>
          <el-table-column prop="name" label="搜索关键字" width="180">
          </el-table-column>
          <el-table-column prop="address" label="用户数" sortable>
          </el-table-column>
          <el-table-column prop="address" label="周涨幅" sortable>
          </el-table-column>
        </el-table>
        <!-- 分页器 -->
        <el-pagination layout="prev, pager, next" :total="1000" class="pages">
        </el-pagination>
      </div>
    </div>
  </el-card>
</template>

<script>
import LineCharts from './lineCharts'

export default {
  name: 'lineCharts',
  components: {
    LineCharts
  }
};
</script>

<style lang="less" scoped>
.title {
  display: flex;
  padding: 10px 0;
  font-size: 14px;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
}

.pages{
  float: right;
}

.mytab {
  margin-top: 30px;
}
</style>